package com.jinmdz.fmis.api.admin.model.car;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.core.base.BaseBean;
import com.jinmdz.fmis.dao.model.dictionary.DataDictionaryItem;
import com.jinmdz.fmis.dao.model.dictionary.ServiceDictionaryRuleItem;
import com.jinmdz.fmis.dao.model.user.RoleUserViewItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * 接运车辆加载信息
 *
 * @author LiCongLu
 * @date 2020-03-12 15:37
 */
@ApiModel(value = "接运车辆加载信息", description = "接运车辆加载信息")
public class CarLoadData extends BaseBean {
    /**
     * 车辆信息
     */
    @AnValidate(name = "车辆信息")
    @ApiModelProperty(value = "车辆信息", name = "car", position = 1)
    private CarSaveData car;

    /**
     * 字典数据
     */
    @AnValidate(name = "字典数据")
    @ApiModelProperty(value = "字典数据", name = "dicts", position = 2)
    private HashMap<String, ArrayList<DataDictionaryItem>> dicts;

    /**
     * 用户组集合
     */
    @AnValidate(name = "用户组集合")
    @ApiModelProperty(value = "用户组集合", name = "users", position = 3)
    private HashMap<String, ArrayList<RoleUserViewItem>> users;

    /**
     * 业务服务字典规则
     */
    @AnValidate(name = "业务服务字典规则")
    @ApiModelProperty(value = "业务服务字典规则", name = "ruleItems", position = 4)
    private ArrayList<ServiceDictionaryRuleItem> ruleItems;

    public CarSaveData getCar() {
        return car;
    }

    public CarLoadData setCar(CarSaveData car) {
        this.car = car;
        return this;
    }

    public HashMap<String, ArrayList<DataDictionaryItem>> getDicts() {
        return dicts;
    }

    public CarLoadData setDicts(HashMap<String, ArrayList<DataDictionaryItem>> dicts) {
        this.dicts = dicts;
        return this;
    }

    public HashMap<String, ArrayList<RoleUserViewItem>> getUsers() {
        return users;
    }

    public CarLoadData setUsers(HashMap<String, ArrayList<RoleUserViewItem>> users) {
        this.users = users;
        return this;
    }

    public ArrayList<ServiceDictionaryRuleItem> getRuleItems() {
        return ruleItems;
    }

    public CarLoadData setRuleItems(ArrayList<ServiceDictionaryRuleItem> ruleItems) {
        this.ruleItems = ruleItems;
        return this;
    }
}
